package com.nian.common.model;

import java.math.BigDecimal;

/**
 * 用途：常量参数
 * 开发：zhangmj
 * 日期：2020/3/31 0031 18:45
 */
public class Const {

    public final static String STRING_EMPTY  = "";

    public interface HTTP_METHOD{
        String OPTIONS  = "OPTIONS";
        String GET      = "GET";
        String POST     = "POST";
        String PUT      = "PUT";
        String DELETE   = "DELETE";
    }
    public interface HTTP_CONTENT_TYPE{
        String TEXT_HTML_UTF8   = "text/html;charset=UTF-8";
        String JSON_UTF8        = "application/json;charset=UTF-8";
        String fORM_URLENCODED  = "application/x-www-form-urlencoded";
        String MULTIPART_FORM_DATA  = "multipart/form-data";
    }


    public interface CHARSET_CODE{
        String CHARSET_UTF8  = "utf8";
    }

    public final static String STRING_CODE_100  = "100";
    public final static String STRING_CODE_200  = "200";
    public final static String STRING_CODE_403  = "403";
    public final static String STRING_CODE_404  = "404";
    public final static String STRING_CODE_405  = "405";
    public final static String STRING_CODE_500  = "500";

    public final static int INT_ONE_M = -1;
    public final static int INT_ZERO  =  0;
    public final static int INT_ONE   =  1;
    public final static int INT_TWO   =  2;
    public final static int INT_THREE =  3;
    public final static int INT_FOUR  =  4;
    public final static int INT_FIVE  =  5;
    public final static int INT_SIX   =  6;
    public final static int INT_SEVEN   =  7;
    public final static int INT_EIGHT   =  8;
    public final static int INT_NINE    =  9;
    public final static int INT_TEN     =  10;
    public final static int INT_ELEVEN  =  11;
    public final static int INT_TWELVE  =  12;
    public final static int INT_100     =  100;
    public final static int INT_200     =  200;
    public final static int INT_254     =  254;
    public final static int INT_255     =  255;
    public final static int INT_256     =  256;
    public final static int INT_5000  =  5000;
    public final static int INT_10000  =  10000;

    public final static int CODE_100  = 100;
    public final static int CODE_200  = 200;
    public final static int CODE_400  = 400;
    public final static int CODE_401  = 401;
    public final static int CODE_402  = 402;
    public final static int CODE_403  = 403;
    public final static int CODE_404  = 404;
    public final static int CODE_405  = 405;
    public final static int CODE_500  = 500;
    /**未删除*/
    public final static Byte DELETE_FLAG_UN  = Byte.valueOf("0");
    /**已删除*/
    public final static Byte DELETE_FLAG   = Byte.valueOf("1");

    public final static Byte BYTE_ONE_M = Byte.valueOf("-1");
    public final static Byte BYTE_ZERO  = Byte.valueOf("0");
    public final static Byte BYTE_ONE   = Byte.valueOf("1");
    public final static Byte BYTE_TWO   = Byte.valueOf("2");
    public final static Byte BYTE_THREE = Byte.valueOf("3");
    public final static Byte BYTE_FOUR  = Byte.valueOf("4");
    public final static Byte BYTE_FIVE  = Byte.valueOf("5");
    public final static Byte BYTE_SIX   = Byte.valueOf("6");
    public final static Byte BYTE_SEVEN  = Byte.valueOf("7");
    public final static Byte BYTE_EIGHT  = Byte.valueOf("8");
    public final static Byte BYTE_NINE   = Byte.valueOf("9");

    public final static Byte BYTE_TEN   = Byte.valueOf("10");
    public final static Byte BYTE_ELEVEN  = Byte.valueOf("11");
    public final static Byte BYTE_TWELVE  = Byte.valueOf("12");
    public final static Byte BYTE_THIRTEEN   = Byte.valueOf("13");
    public final static Byte BYTE_FOURTEEN = Byte.valueOf("14");
    public final static Byte BYTE_FIFTEEN   = Byte.valueOf("15");

    public final static Short SHORT_ONE_M = Short.valueOf("-1");
    public final static Short SHORT_ZERO  = Short.valueOf("0");
    public final static Short SHORT_ONE   = Short.valueOf("1");
    public final static Short SHORT_TWO   = Short.valueOf("2");
    public final static Short SHORT_THREE = Short.valueOf("3");


    public final static BigDecimal BIGDECIMAL_ZERO = BigDecimal.valueOf(BYTE_ZERO);
    public final static BigDecimal BIGDECIMAL_ONE_M = BigDecimal.valueOf(BYTE_ONE_M);


    public final static String[]  BACKEND_IMG_APP_SUFFIX_IMG = {".jpg", ".jpeg", ".png", ".gif"};
    public final static String[]  BACKEND_IMG_APP_SUFFIX_APK = {".apk"};

    public final static long BACKEND_IMG_APP_MAX_SIZE = 100 * 1000L;

    /**
     * 图片前缀
     */
    public final static String IMAGES_PREFIX = "IMAGES_";

    /**
     * 设置图片为一个月的过期时间
     */
    public final static int ZT_INAGES_EXPIRE = 1000*60*60*24*30;
}
